package com.designMode;

public class Computer {
    private String type;
    private String name;

    public Computer setType(String type) {
        this.type = type;
        return this;
    }

    public Computer setName(String name) {
        this.name = name;
        return this;
    }

    @Override
    public String toString() {
        return "Computer{" +
                "type='" + type + '\'' +
                ", name='" + name + '\'' +
                '}';
    }

    public static void main(String[] args) {
        Computer computer = new Computer().setName("sdfsd")
                .setType("huawei");
        System.out.println(computer);

        System.out.println("hello\r\nworld\nworld");

    }


}
